<?php
require_once("./DButil.php");

$sql="select roleId,roleName from t_role";

if (query($sql)) {
    $result=query($sql);
}
header("Content-Type:application/json;charset=utf-8");
echo json_encode($result);
?>